﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PageMaster/Site1.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="EMS20.UI.Admin.News.Index" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="h1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="body" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form runat="server">
        <table class="list">
            <tr>
                <th>id</th>
                <th>类别</th>
                <th>管理员</th>
                <th>标题</th>
                <th>作者</th>
                <th>操作</th>
            </tr>

            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                <ItemTemplate>
                    <tr>
                        <td><%#Eval("n_id") %></td>
                        <td><%#Eval("c_title") %></td>
                        <td><%#Eval("real_name") %></td>
                        <td><%#Eval("n_title") %></td>
                        <td><%#Eval("n_author") %></td>
                        <td>
                            <asp:LinkButton ID="LinkButton1" CommandName="Del" CommandArgument='<%#Eval("n_id") %>' runat="server" OnClientClick="return confirm('是否确定删除')">删除</asp:LinkButton>
                            |　<a href="/Admin/News/Edit.aspx?id=<%#Eval("n_id") %>">修改</a></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <webdiyer:AspNetPager ID="AspNetPager1" AlwaysShow="true" runat="server" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PageSize="4" PrevPageText="上一页" OnPageChanging="AspNetPager1_PageChanging"></webdiyer:AspNetPager>
    </form>

</asp:Content>
